import request from '@/utils/request'

//根据任务表类型、任务ID，查询行政区划--省|市|区县的名称和code列表
export function queryProvinceCityCountyNameCodeListByTaskId(type,taskId) {
    return request({
        url: '/taskRegionQuery/queryProvinceCityCountyNameCodeListByTaskId/' + type + "/" + taskId,
        method: 'get',
    })
}

//根据任务表类型、任务ID，查询行政区划--省|市|区县|乡镇的名称和code列表
export function queryProvinceCityCountyStreetNameCodeListByTaskId(type,taskId) {
    return request({
        url: '/taskRegionQuery/queryProvinceCityCountyStreetNameCodeListByTaskId/' + type + "/" + taskId,
        method: 'get',
    })
}

//根据地图圈选区域，查询行政区划--省|市|区县的名称和code列表
export function queryProvinceCityCountyNameCodeListByGeomText(geomText) {
    return request({
        url: '/task/queryProvinceCityCountyNameCodeListByGeomText',
        method: 'post',
        data: {
            geomText: geomText
        }
    })
}

//根据地图圈选区域，查询行政区划--省|市|区县|乡镇的名称和code列表
export function queryProvinceCityCountyStreetNameCodeListByGeomText(geomText) {
    return request({
        url: '/taskRegionQuery/queryProvinceCityCountyStreetNameCodeListByGeomText',
        method: 'post',
        data: {
            geomText: geomText
        }
    })
}

//上传空间矢量数据文件--test
export function uploadDistrictBoundaryFiles(data) {
    return request({
        url: '/taskRegionQuery/uploadDistrictBoundaryFiles',
        method: 'post',
        data: data
    })
}